package com.hzw.saas.service.product.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import lombok.Data;

/**
 * @author EZ09
 * @since 08/03/2021
 */
@Component
@ConfigurationProperties(prefix = "saas.product", ignoreInvalidFields = true, ignoreUnknownFields = true)
@Data
public class ProductConfig {

    /**
     * 产品发布根目录
     * 产品目录结构 {releaseCatalog}/{productName}/{productVersion}
     */
    private String releaseCatalog = "product/release";

    private String metadataFile = "version.bin";

    private String releaseFile = "releaseInfo.txt";

    private String releaseVersionKey = "release version";

    private String releaseDateKey = "release date";

    private String releaseNotesKey = "release notes";

}
